class Headers(object):

    @staticmethod
    def headers(cookieString, refer):
        reqheaders = {
            "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
            "Accept-Encoding": "gzip, deflate",
            "Accept-Language": "zh-CN,zh;q=0.9",
            "Cache-Control": "max-age=0",
            "Connection": "keep-alive",
            "Cookie": cookieString,
            "Host": "www.baidu.com",
            "is_referer": "https://www.baidu.com/",
            "is_xhr": "1",
            "Pragma": "no-cache",
            "Referer": refer,
            # "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"
            "sec-ch-ua": "Not;A Brand\";v=\"24\", \"Google Chrome\";v=\"101\", \"Chromium\";v=\"110",
            "sec-ch-ua-mobile": "?0",
            "sec-ch-ua-platform": "macOS",
            "Sec-Fetch-Dest": "document",
            "Sec-Fetch-Mode": "navigate",
            "Sec-Fetch-Site": "same-origin",
            "Sec-Fetch-User": "?1",
            "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
            "X-Requested-With": "XMLHttpRequest",
        }
        return reqheaders